package object3.package2;

public class Main {
    public static void main(String[] args) {
        Computer computer = new Computer();
        KeyBoard keyBoard = new KeyBoard();
        Mouse mouse = new Mouse();
        System.out.println("keyBoard usb:" + keyBoard.brand1);
        System.out.println("mouse usb:" + mouse.brand2);

        computer.powerOn();
        mouse.openDevice();
        keyBoard.openDevice();

        computer.useDevice(keyBoard);
        computer.useDevice(mouse);

        keyBoard.closeDevice();
        mouse.closeDevice();
        computer.powerOff();
    }
}
